package com.itheima.d7_interface_demo;


import java.util.ArrayList;

public class StudentManager {
    private ArrayList<Student> list = new ArrayList<>();
    OperateImpl Op = new Impl2();

    public StudentManager(){
        list.add(new Student("张三","男",88));
        list.add(new Student("李四","女",100));
        list.add(new Student("王五","男",80));
        list.add(new Student("赵六","女",69));
    }

    public void printShowAll(){

        Op.printAll(list);
    }

    public void printEverage(){
        Op.printEve(list);
    }


}
